package com.nvn.androidapp.Objects;

import android.app.Dialog;
import android.content.Context;
import android.graphics.Bitmap;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;

import com.nvn.androidapp.R;

public class TestDialog extends Dialog {
	/*
	 * private fields
	 */
	private Context context;
	private LayoutInflater li;
	private View v;
	private ImageView imv;

	/*
	 * constructor
	 */
	public TestDialog(Context context, Bitmap bmp) {
		super(context);
		this.context = context;
		init();
		imv.setImageBitmap(bmp);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		this.setContentView(v);
		this.show();
	}

	/*
	 * initialize method
	 */
	private void init() {
		li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		v = li.inflate(R.layout.test, null);
		
		imv = (ImageView)v.findViewById(R.id.imv_test);
	}
	
	/*
	 * public methods
	 */
}
